﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true"
    CodeFile="EditEvent.aspx.cs" Inherits="Modeling_Sub_Pages_NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #main
        {
            min-width: 1000px;
        }
        #center1
        {
            width: 1000px;
            min-height: 500px;
            padding-top: 15px;
            margin-right: auto;
            margin-left: auto;
        }
        #center
        {
            width: 700px;
        }
        .toCenter
        {
            margin-left: auto;
            margin-right: auto;
        }
        .readMore
        {
            text-decoration: none;
            color: #3B7ABE;
            font-style: italic;
        }
        .readMore:hover
        {
            text-decoration: underline;
            color: #0066FF;
        }
        .readMore:visited
        {
            text-decoration: none;
            color: #3B7ABE;
            font-style: italic;
        }
        .textCenter
        {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="center1">
        <div id="left">
            <table>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Staff/AdmissionManager.aspx"
                            CssClass="LinkStyle1">Admission Managerment</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/Staff/StudentManagerment.aspx"
                            CssClass="LinkStyle1">Student Managerment</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/Staff/ScoresManagerment.aspx"
                            CssClass="LinkStyle1">Scores Managerment</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td id="activeTD">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Staff/EventManagerment.aspx"
                            CssClass="activeLink">Events Managerment</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Staff/NewsManagerment.aspx"
                            CssClass="LinkStyle1">News Managerment</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/Staff/CoursesManagerment.aspx"
                            CssClass="LinkStyle1">Course Managerment</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/Staff/CoursesRegisManager.aspx"
                            CssClass="LinkStyle1">Course Regis Manager...</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/Staff/FeedbackManager.aspx"
                            CssClass="LinkStyle1">Feedback Managerment</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/Staff/ChangePassword.aspx"
                            CssClass="LinkStyle1">Change Password</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </div>
        <div id="center">
            <table class="toCenter">
                <tr>
                    <td colspan="2" align="center">
                        <asp:Label ID="lblTitle" runat="server" Text="Edit Event" Font-Size="20pt" ForeColor="#990033"></asp:Label>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td width="120">
                        <strong>Title: </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" Width="250"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please input title!"
                            ControlToValidate="txtTitle" ValidationGroup="checkVa"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <strong>Date Start: </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDateTime" runat="server" Width="100px" Enabled="False" Font-Bold="True"
                            CssClass="textCenter"></asp:TextBox>
                        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" CssClass="readMore">Show Calendar</asp:LinkButton>
                        <asp:Calendar ID="Calendar1" runat="server" OnSelectionChanged="Calendar1_SelectionChanged"
                            Style="height: 188px; width: 259px" Visible="False" BackColor="White" BorderColor="Black"
                            DayNameFormat="Shortest" Font-Names="Times New Roman" Font-Size="10pt" ForeColor="Black"
                            Height="220px" NextPrevFormat="FullMonth" TitleFormat="Month" Width="400px">
                            <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" ForeColor="#333333"
                                Height="10pt" />
                            <DayStyle Width="14%" />
                            <NextPrevStyle Font-Size="8pt" ForeColor="White" />
                            <OtherMonthDayStyle ForeColor="#999999" />
                            <SelectedDayStyle BackColor="#CC3333" ForeColor="White" />
                            <SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt"
                                ForeColor="#333333" Width="1%" />
                            <TitleStyle BackColor="Black" Font-Bold="True" Font-Size="13pt" ForeColor="White"
                                Height="14pt" />
                            <TodayDayStyle BackColor="#CCCC99" />
                        </asp:Calendar>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <strong>Time Start: </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtHour" runat="server" Width="50px"></asp:TextBox>
                        Hour&nbsp;&nbsp;
                        <asp:TextBox ID="txtMinute" runat="server" Width="50px"></asp:TextBox>
                        Minute
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please input date start!"
                            ControlToValidate="txtDateTime" ValidationGroup="checkVa" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please input hour!"
                            ControlToValidate="txtHour" ValidationGroup="checkVa" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please input minute!"
                            ControlToValidate="txtMinute" ValidationGroup="checkVa" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="Date start must higher than current date!"
                            ControlToValidate="txtDateTime" Display="Dynamic" OnServerValidate="CustomValidator2_ServerValidate"
                            ValidationGroup="checkVa"></asp:CustomValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtHour"
                            ErrorMessage="Hour not Correct!" ValidationExpression="[0-9]+" Display="Dynamic"
                            ValidationGroup="checkVa"></asp:RegularExpressionValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtMinute"
                            ErrorMessage="Minute not Correct!" ValidationExpression="[0-9]+" Display="Dynamic"
                            ValidationGroup="checkVa"></asp:RegularExpressionValidator>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Hour must in range 1-23"
                            ControlToValidate="txtHour" Display="Dynamic" MaximumValue="24" MinimumValue="0"
                            ValidationGroup="checkVa" Type="Integer"></asp:RangeValidator>
                        <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="Minute must in range 0-59"
                            ControlToValidate="txtMinute" Display="Dynamic" MaximumValue="59" MinimumValue="0"
                            ValidationGroup="checkVa" Type="Integer"></asp:RangeValidator>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <strong>Time End: </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtHourEnd" runat="server" Width="50px"></asp:TextBox>
                        Hour&nbsp;&nbsp;
                        <asp:TextBox ID="txtMinuteEnd" runat="server" Width="50px"></asp:TextBox>
                        Minute
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Please input hour!"
                            ControlToValidate="txtHourEnd" ValidationGroup="checkVa" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Please input minute!"
                            ControlToValidate="txtMinuteEnd" ValidationGroup="checkVa" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtHourEnd"
                            ErrorMessage="Hour not Correct!" ValidationExpression="[0-9]+" Display="Dynamic"
                            ValidationGroup="checkVa"></asp:RegularExpressionValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtMinuteEnd"
                            ErrorMessage="Minute not Correct!" ValidationExpression="[0-9]+" Display="Dynamic"
                            ValidationGroup="checkVa"></asp:RegularExpressionValidator>
                        <asp:RangeValidator ID="RangeValidator3" runat="server" ErrorMessage="Hour must in range 1-23"
                            ControlToValidate="txtHourEnd" Display="Dynamic" MaximumValue="24" MinimumValue="0"
                            ValidationGroup="checkVa" Type="Integer"></asp:RangeValidator>
                        <asp:RangeValidator ID="RangeValidator4" runat="server" ErrorMessage="Minute must in range 0-59"
                            ControlToValidate="txtMinuteEnd" Display="Dynamic" MaximumValue="59" MinimumValue="0"
                            ValidationGroup="checkVa" Type="Integer"></asp:RangeValidator>
                        <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Time end must higher than time start!"
                            ControlToValidate="txtHourEnd" ValidationGroup="checkVa" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Location: </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtLocation" runat="server" Width="350"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please input location!"
                            ControlToValidate="txtLocation" ValidationGroup="checkVa"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Content: </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtContent" runat="server" Width="400" Rows="15" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please input content!"
                            ControlToValidate="txtContent" ValidationGroup="checkVa"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Image: </strong>
                    </td>
                    <td>
                        <asp:FileUpload ID="fuImage" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnSend" runat="server" Text="Send" ValidationGroup="checkVa" OnClick="btnSend_Click" />
                        <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
